package com.atguigu.book.dao;

import com.atguigu.book.pojo.Order;
import com.atguigu.book.pojo.User;

import java.util.List;

/**
 * @InterfaceName: OrderDAO
 * @Description:
 * @Author: wty
 * @Date: 2022/12/13
 */

public interface OrderDAO {
    /**
     * 结账
     * 1) 订单表添加一条记录
     * 2) 订单详情表添加7条记录
     * 3) 购物车项表中需要删除对应的7条记录
     */
    /**
     * @param
     * @return void
     * @description 添加订单
     * @param: order
     * @date 2022/12/13 18:41
     * @author wty
     **/
    public void addOrder(Order order);

    public List<Order> getOrderList(User user);

    public Integer getOrderTotalBookeCount(Order order);

}
